﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace GrailTechnology.AutoTags.DataType.usercontrols
{
    public partial class AutoTagsPostInstall : System.Web.UI.UserControl
    {

        Config c;

        protected override void OnInit(EventArgs e)
        {
            c = Config.Instance;
            CalaisKey.Text = c.OpenCalaisApiKey;
			TagGroup.Text = c.TagGroup;
        }

        
        protected void Button1_Click(object sender, EventArgs e)
        {
            c.OpenCalaisApiKey = CalaisKey.Text;
			c.TagGroup = TagGroup.Text;
            c.Write();
            Literal1.Visible = true;
        }
    }
}